<?php
App::uses('AppModel', 'Model');
/**
 * Departamento Model
 *
 * @property Criadero $Criadero
 */
class Egreso extends AppModel {


	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * hasMany associations
 *
 * @var array
 */
	public $hasOne = array(
		'Egresobanco' => array(
			'className' => 'Egresobanco',
			'foreignKey' => 'egreso_id',
			'dependent' => false
		), 
        'Egresoefectivo'=>array(
           'className' => 'Egresoefectivo',
			'foreignKey' => 'egreso_id',
			'dependent' => false
        ), 
        'Egresoscuentascobros'=>array(
           'className' => 'Egresoscuentascobros',
		   'foreignKey' => 'egreso_id',
		   'dependent' => false
        )
	);
    
    public $belongsTo = array(
       'Propietario'=> array(
          'className'=>'Propietario', 
          'foreignKey'=>'propietario_id'
       ),
       'Tipospago'=>array(
          'className' => 'Tipospago',
		  'foreignKey' => 'tipospago_id',
       )
    );

}
